public class Application {
    public static void main(String[] args) {
        Animal animal;
        Simulator simulator=new Simulator();
        simulator.PlaySound(new Cat());
        simulator.PlaySound(new Dog());
    }
}
